"""
If you're constantly passing the current member to the templates, i suggest
you to use this context_processor.

Please check http://www.b-list.org/weblog/2006/jun/14/django-tips-template-context-processors/
for a tutorial.
"""

def member(request):
    try:
        member = getattr(request,'member')
    except AttributeError:
        member = None

    return {'member': member}
